# iOS构建器镜像
# 注意: iOS构建必须在macOS主机上运行
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

# 安装基础工具
RUN apt-get update && apt-get install -y \
    curl \
    wget \
    git \
    python3 \
    && rm -rf /var/lib/apt/lists/*

# 安装Node.js
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
    && apt-get install -y nodejs

WORKDIR /builder

COPY builder.js ./
COPY package.json ./
RUN npm install

# 提示信息
RUN echo "Warning: iOS builds require macOS and Xcode. This container is for demonstration purposes only." > /README.txt

CMD ["node", "builder.js"]
